﻿<%@page import="org.apache.commons.lang.time.DateUtils"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.Calendar"%>
<%@page import="com.seeyon.apps.kk.manager.jq.AccountDayWorktimeManager"%>
<%@page import="com.seeyon.apps.kk.task.KkJqTask"%>
<%@page import="com.seeyon.ctp.common.AppContext"%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
 
 
 <% KkJqTask task=(KkJqTask)AppContext.getBean("kkJqTask") ;
		 task.staffLeaveRefresh();
 out.println("staffLeaveRefreshok");
 AccountDayWorktimeManager kkAccountDayWorktimeManager=(AccountDayWorktimeManager)AppContext.getBean("accountDayWorktimeManager") ;
 for(int i=1;i<=50;i++){
	 Calendar cal=	Calendar.getInstance();
		Date yestoday=DateUtils.addDays( cal.getTime(), -1*i);
		kkAccountDayWorktimeManager.updateDailyAttendance(yestoday);
 }

 %>
